<?php


namespace app\common\validate;
use think\Validate;

class Config extends Validate
{
    protected $rule=[
        'paiming|设置周期排名' => 'require|regex:/^[1-9][0-9]*$/',
        'award0|金额' => 'require|regex:/^[1-9][0-9]*$/',
        'yun_money|金额' => 'require|regex:/^[1-9][0-9]*$/',
         'dian_money|金额' => 'require|regex:/^[1-9][0-9]*$/',

    ];
    protected $message=[

        'paiming.require'             =>  '排名周期必须填写',
        'paiming.regex'               =>'排名周期必须为正整数',
        'award0.require'             =>  '金额必须填写',
        'award0.regex'               =>'金额必须为正整数',
        'yun_money.require'             =>  '金额必须填写',
        'yun_money.regex'               =>'金额必须为正整数',
        'dian_money.require'               =>  '金额必须填写',
        'dian_money.regex'               =>'金额必须为正整数',




        'award3.require'              =>  '金额必须填写',
        'award3.regex'               =>'金额必须为正整数',
        'award4.require'            =>  '金额必须填写',
        'award4.regex'               =>'金额必须为正整数',
        'award5.require'            =>  '金额必须填写',
        'award5.regex'               =>'金额必须为正整数',
        'award6.require'             =>  '金额必须填写',
        'award6.regex'               =>'金额必须为正整数',
        'award7.require'             =>  '金额必须填写',
        'award7.regex'               =>'金额必须为正整数',
    ];

}